"""
配置文件，例如数据库配置等等
"""

SECRET_KEY = "aasdqrew;qwqe"

# 数据库配置信息
HOSTNAME = '120.46.220.83'
PORT = '3306'
DATABASE = 'cet6'  # 这里注意数据库名字是否一致
USERNAME = 'admin'
PASSWORD = 'root'
DB_URI = 'mysql+pymysql://{}:{}@{}:{}/{}?charset=utf8mb4'.format(USERNAME, PASSWORD, HOSTNAME, PORT, DATABASE)  # 注意字符集
SQLALCHEMY_DATABASE_URI = DB_URI

# 邮箱配置
MAIL_SERVER="email here!"
MAIL_USE_SSL=True
MAIL_PORT=465
MAIL_USERNAME="邮箱账户"
MAIL_PASSWORD="开启SMTP服务时生成的授权码"
MAIL_DEFAULT_SENDER="邮箱账户"
